﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LF.Domain.Entities
{
    public class KnowledgeBase : BaseEntity
    {
        /// <summary>
        /// 知识库名称
        /// </summary>
        public string Name {  get; set; }
        /// <summary>
        /// 知识库图片
        /// </summary>
        public string? ImageMD5 {  get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool Active { get; set; }

        /// <summary>
        /// 文件列表
        /// </summary>
        [Navigate(nameof(KnowledgeFile.KnowledgeBaseId))]
        public virtual List<KnowledgeFile> KnowledgeFiles { get; set; }
    }
}
